package com.bibrApp.difu.utils;

import android.content.ClipboardManager;
import android.content.Context;

import static android.content.Context.CLIPBOARD_SERVICE;

public class SystemClipboardUtils {
    /**
     * 复制到粘贴版
     * @param text
     * @param context
     */
    public static void copyToClipboard(String text, Context context) {
        ClipboardManager cmb = (ClipboardManager) context.getSystemService(CLIPBOARD_SERVICE);
        cmb.setText(text);
    }

}